class BannerListVo {
  List<BannerItem>? data;

  BannerListVo({this.data});

  BannerListVo.fromJson(Map<String, dynamic> json) {
    if (json['data'] != null) {
      data = [];
      json['data'].forEach((v) {
        data!.add(new BannerItem.fromJson(v));
      });
    }
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    if (this.data != null) {
      data['data'] = this.data!.map((v) => v.toJson()).toList();
    }
    return data;
  }
}

class BannerItem {
  String? title;
  String? image;
  int? type;
  String? route;
  String? parameter;
  String? url;

  BannerItem(
      {this.title,
      this.image,
      this.type,
      this.route,
      this.parameter,
      this.url});

  BannerItem.fromJson(Map<String, dynamic> json) {
    title = json['title'];
    image = json['image'];
    type = json['type'];
    route = json['route'];
    parameter = json['parameter'];
    url = json['url'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['title'] = this.title;
    data['image'] = this.image;
    data['type'] = this.type;
    data['route'] = this.route;
    data['parameter'] = this.parameter;
    data['url'] = this.url;
    return data;
  }
}
